<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="referrer" content="never">
    <title>jQAJAX</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        ul {
            list-style: none;
        }
    </style>
</head>
<body>
    
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script type="text/javascript">
        // $.ajax(配置)  jQuery.ajax(配置)  配置--前面封装的

        $.ajax({
            url: "http://bufantec.com/api/douban/movie/in_theaters",
            data: {
                start: 6
            },
            success(res){
                console.log(res);
            }
        })

        $.ajax({
            url: "http://bufantec.com/api/test/user/doLogin",
            type: "POST",
            data: {
                username: "libai",
                password: "123456"
            },
            success(res){
                console.log(res);
            }
        })

        $.ajax({
            url: "http://192.160.0.100:9000/json",
            type: "POST",
            contentType: "application/json",
            data: JSON.stringify({
                username: "libai",
                password: "123456"
            }),
            success(res){
                console.log("65", res);
            }
        })

        $.get("http://bufantec.com/api/douban/movie/in_theaters", function (res, statusText){
            console.log(statusText, res);
        })

        // ajax => axios
    </script>
</body>
</html>